package com.huike.business.mapper;

import com.huike.business.domain.TbBusinessTrackRecord;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TbBusinessTrackRecordMapper {
    //添加跟进商机信息
    @Insert("insert into tb_business_track_record values (null,#{businessId},#{createBy},#{keyItems},#{record},#{createTime},#{trackStatus},#{nextTime})")
    Integer insertTbBusinessTrackRecord(TbBusinessTrackRecord tbBusinessTrackRecord);
    //查询跟进商机信息
    @Select("SELECT id, business_id, create_by, key_items, record, create_time, track_status, next_time FROM tb_business_track_record WHERE business_id = #{id}")
    List<TbBusinessTrackRecord> selectTbBusinessTrackRecordById(Long id);
}
